package com.youlin.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 告别厅表
 * @author ${author}
 * @since 2020-05-28
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
public class BygFarewellHall implements Serializable {

    private static final long serialVersionUID=1L;

    // 告别厅ID
    @ApiModelProperty(value = "告别厅ID", position = 1)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 告别厅所属单位ID
    @ApiModelProperty(value = "告别厅所属单位ID", position = 2)
    private Integer unitId;

    // 告别厅名称
    @ApiModelProperty(value = "告别厅名称", position = 3)
    private String name;

    // 告别厅编号
    @ApiModelProperty(value = "告别厅编号", position = 4)
    private Integer code;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间", dataType = "java.lang.String", example = "2020-02-02 08:08:08", position = 5)
    private LocalDateTime addTime;

    /**
     * 修改时间
     */
    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private LocalDateTime updateTime;

    // 告别会数量
    @TableField(exist = false)
    @ApiModelProperty(value = "告别会数量", position = 6)
    private Integer amCount = 0;

    // 是否逻辑删除
    @TableLogic
    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private Boolean isDel;

}
